"""
https://support.geocue.com/converting-focal-length-from-pixels-to-millimeters-to-use-in-bentley-context-capture/#:~:text=To%20convert%20a%20known%20focal,width%20in%20pixels%20is%205472.
F(mm) = F(pixels) * SensorWidth(mm) / ImageWidth (pixel).
"""

# fp = 2457.60
fp = 3554.74
# fm = 5
fm = 4
# wp = 3072
wp = 4608
# dpi = 72
# wi = wp / dpi  # width in inch
# mpi = 25.4 # mm per inch
# wm = wi * mpi
# print('wm', wm)

sensorWidthM = fm / fp * wp
print('sensorWidthM', sensorWidthM)
